package com.andy.myFramework.ioc;

import java.util.Map;

public interface BeanFactory {
    /**
     * class获取bean
     * @param type
     * @return
     * @throws Exception
     */
    public <T> T getBean(Class<T> type) throws Exception;

    /**
     * name获取bean
     * @param name
     * @return
     * @throws Exception
     */
    public Object getBean(String name) throws Exception;

    public void initBeanFactory(String scanClassPath) throws Exception;

    /**
     * 获取整个单例池
     * @return
     */
    public Map<String,Object> getSingletons();

}
